<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'tintuc-form',
	'enableAjaxValidation'=>true,
	'htmlOptions'=>array('enctype'=>'multipart/form-data'),
)); ?>

	<div class="row">
		<label>Tiêu đề</label>
		<?php echo $form->textField($model,'TieuDe',array('size'=>100,'maxlength'=>500,'class'=>'text-input medium-input')); ?>
		<?php echo $form->error($model,'TieuDe', array('class'=>'input-notification error png_bg')); ?>
	</div><br />

	<div class="row">
		<label>Nội dung</label>
		<?php echo $form->textArea($model,'NoiDung',array('rows'=>6, 'cols'=>50, 'class'=>'text-input textarea wysiwyg')); ?>
		<?php echo $form->error($model,'NoiDung', array('class'=>'input-notification error png_bg')); ?>
	</div><br />

	<div class="row">
		<label>Ảnh đại diện</label>
		<?php echo $form->fileField($model,'path',array('size'=>40)); ?>
		<?php echo $form->error($model,'AnhDaiDien', array('class'=>'input-notification error png_bg')); ?>
	</div><br />

	<div class="row">
		<label>Chú thích ảnh</label>
		<?php echo $form->textField($model,'ChuThichAnh',array('size'=>100,'maxlength'=>300,'class'=>'text-input small-input')); ?>
		<?php echo $form->error($model,'ChuThichAnh', array('class'=>'input-notification error png_bg')); ?>
	</div><br />
	
	<div class="row">
		<label>Danh mục tin</label>
		<?php echo $form->dropDownList($model,'DanhMucTin_Id',danhmuctin::model()->get_danhmuctin());?>
		<?php echo $form->error($model,'DanhMucTin_Id', array('class'=>'input-notification error png_bg')); ?>
	</div><br />

	<div class="row">
		<label>Trạng thái</label>
		<?php echo $form->dropDownList($model,'TrangThai',
					array(
						1=>'Hiển thị',
						0=>'Không hiển thị',
						2=>'Slide'
						)
					); 
				?>
		<?php echo $form->error($model,'TrangThai', array('class'=>'input-notification error png_bg')); ?>
	</div><br />

	

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? '  Tạo mới  ' : '  Cập nhật  ', array('class'=>'button')); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->